home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / tc2cs.arc / XAMPLE.C < prev   
Text File  |  1987-06-11  |  682b  |  27 lines

  1. /* This is a very simple example of why you need cross reference files
  2.  * like CS.FLD.  For each object you need to know what externals and publics
  3.  * are defined.
  4.  */
  5.  
  6. char _streams[] = "Hello, world"; 
  7.  
  8. void main()
  9. {
  10.     printf("%s\n", _streams );
  11.     spawnl();
  12. }
  13. spawnl()
  14. {
  15.     system( "DIR *.C");
  16. }
  17.  
  18. /* To make this program work properly 
  19.  *
  20.  *  remove the under-bar from _streams
  21.  *  remove the leading s from spawnl
  22.  *
  23.  * TurboC tries to protect you from stubbing your toe by preceding
  24.  * publics with an under-bar.  But when you start building your own libraries
  25.  * you will have come up with your own kludge or have a good cross referencing 
  26.  * system.
  27.  */